delete __dirname
delete __filename


window = global
window.top = window
window.addEventListener = function () {
    console.log('window中的addEventListener：', arguments)
}

div = {
    getElementsByTagName: function (res) {
        console.log('div中的getElementsByTagName：', res)
        if (res === 'i') {
            return {}
        }
    },
}

meta = [
    {}, {},
    {
        http_equiv: 'X-UA-Compatible',
        content: 'IE=edge,chrome=1'
    },
    {}, {}, {}, {},
    {
        getAttribute: function (res) {
            console.log('meta中的getAttribute：', res)
            if (res === 'r') {
                return 'm'
            }
        },
        parentNode: {
            removeChild: function (res) {
                console.log('meta中的removeChild：', res)
            }
        },
        content: "sv3.mcJeUxhBpyBMIHAL7Hg.uIQETVjJJ.9GPVMHpSfcfRNIJIP8DUnSajCaPKRi"
    }
]

document = {
    createElement: function (res) {
        console.log('document中的createElement：', res)
        if (res == 'div') {
            return div
        }
        // if(res == 'form'){
        //     return {}
        // }
    },
    appendChild: function (res) {
        console.log('document中的appendChild：', res)
    },
    removeChild: function (res) {
        console.log('document中的removeChild：', res)
    },
    getElementsByTagName: function (res) {
        console.log('document中的getElementsByTagName：', res)
        if (res === 'script') {
            return {}
        }
        if (res === 'meta') {
            return meta
        }
        if (res === 'base') {
            return {length: 0}
        }
    },
    getElementById: function (res) {
        console.log('document中的getElementById：', res)
        if (res === 'root-hammerhead-shadow-ui') {
            return null
        }
    },
}

location = {
    "ancestorOrigins": {},
    "href": "https://www.zking.com/",
    "origin": "https://www.zking.com",
    "protocol": "https:",
    "host": "www.zking.com",
    "hostname": "www.zking.com",
    "port": "",
    "pathname": "/",
    "search": "",
    "hash": ""
}

navigator = {
    userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
}



setInterval = function () {
}
setTimeout = function () {
}
clearInterval = function () {
}


ts_code

func_code

function get_cookie() {
    return document.cookie
}


